package com.dq;

import com.mybatis.MapperProxyFactory;

import java.util.List;

/**
 * 手写Mybatis底层源码 流程
 * todo 不基于xml配置  基于注解开发
 */
public class Main {
    public static void main(String[] args) {
        UserMapper userMapper = MapperProxyFactory.getMapper(UserMapper.class);
        List<User> userList = userMapper.getUserList("dq");
        System.out.println("userList = " + userList);
        User user = userMapper.getUserById(1);
        System.out.println("user = " + user);
    }
}